/**
 * pharma-business - 22 août 2011
 * guillaume
 */
package org.bspv.pharma.business.impl;

import org.bspv.pharma.business.SupplyManagementBusinessService;
import org.bspv.pharma.manager.SupplyManager;
import org.bspv.pharma.manager.TypeOfSupplyManager;
import org.bspv.pharma.model.TypeOfSupply;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author guillaume
 *
 */
public class SupplyManagementBusinessServiceImpl implements SupplyManagementBusinessService {

    /**
     * Service basique de gestion des fournitures.
     */
    @Autowired
    private SupplyManager supplyManager;
    
    /**
     * Service basique de gestion des types de fournitures.
     */
    @Autowired
    private TypeOfSupplyManager typeOfSupplyManager;
    
    /**
     * {@inheritDoc}
     */
    @Override
    public TypeOfSupply findTypeOfSupply(Long typeOfSupplyId) {
        return typeOfSupplyManager.findById(typeOfSupplyId);
    }

}
